<?php
class Answer_m extends MY_Model{
	function __construct(){
		parent::__construct();
		$this->_table = 'polls_answer';
	}
	
	public function get_all(){
		$this->db->order_by('ordering');
		$this->db->where('lang',$this->_lang);
		return parent::get_all();
	}
	
	public function insert($data){
		$data['lang']	= $this->_lang;
		$id_insert = parent::insert($data);
		return $id_insert;
	}
	
	public function ordering( $id, $model ){
		return parent::update($id,$model);
	}	
	
}